package com.ruoyi.media.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 北师大心理课件对象 business_media
 * 
 * @author duanxinli
 * @date 2024-09-25
 */
public class Media extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 跳转链接 */
    @Excel(name = "跳转链接")
    private String href;

    /** 序号 */
    @Excel(name = "序号")
    private String code;

    /** 年级 */
    @Excel(name = "年级")
    private Long grade;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String name;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHref(String href) 
    {
        this.href = href;
    }

    public String getHref() 
    {
        return href;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setGrade(Long grade) 
    {
        this.grade = grade;
    }

    public Long getGrade() 
    {
        return grade;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("href", getHref())
            .append("code", getCode())
            .append("grade", getGrade())
            .append("name", getName())
            .toString();
    }
}
